<script setup lang="ts">
const sayHello = ()=>{
  alert('你好！')
}
</script>



<template>

<button @click="sayHello">点我试试</button>


<button @mouseenter="sayHello">点我试试</button>

</template>



<style scoped>

</style>